$(".openMaterialDraggable").on("mouseover", ".material-preview", function () {
    $(this).children('.operation-btns').show();
    $(this).children('.del-wrap').children('.icon-close').show();
}).on("mouseout", ".material-preview", function () {
    $(this).children('.operation-btns').hide();
    $(this).children('.del-wrap').children('.icon-close').hide();
}).on('click', '.icon-close', function () {
    var clear_name = $(this).parent().parent().attr('data-clear-name');
    $("input[name='"+clear_name+"']").val('');
    $(this).parent().parent().remove();
}).on('click', '.openMaterialPreview', function () {
    var value = $(this).attr("data-url").split(',');
    var data = [];
    for (i in value) {
        data.push({src: value[i]});
    }
    layer.photos({
        photos: {"data": data, "start": 0}
        , anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机
        , closeBtn: 1,
    });
})